<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<title>alova</title>
	<!--https://www.jsdelivr.com/-->
	<!--<script src="https://cdn.jsdelivr.net/npm/alova@3.3.4/dist/alova.common.cjs"></script>-->
	<!--ECMAScript模块ESM是现代JavaScript应用中推荐的模块化标准-->
	<!--<script src="https://cdn.jsdelivr.net/npm/alova@3.3.4/dist/alova.esm.js"/>-->
	<!--UMD是一种JavaScript模块的封装格式允许JavaScript模块在各种环境中运行包括客户端浏览器和服务器端如Node.js-->
	<!--UMD成为跨平台共享代码的一种方式-->
	<!--<script src="https://cdn.jsdelivr.net/npm/alova@3.3.4/dist/alova.umd.js"></script>-->
	<!--<script src="https://cdn.jsdelivr.net/npm/alova@3.3.4/dist/alova.umd.min.js"></script>-->
	<!--https://unpkg.com/-->
	<!--<script src="https://app.unpkg.com/alova@3.3.4/files/dist/alova.common.cjs"></script>-->
	<!--<script src="https://app.unpkg.com/alova@3.3.4/files/dist/alova.esm.js"></script>-->
	<!--<script src="https://app.unpkg.com/alova@3.3.4/files/dist/alova.umd.js"></script>-->
	<!--<script src="https://app.unpkg.com/alova@3.3.4/files/dist/alova.umd.min.js"></script>-->
</head>
<body>
<!--https://alova.js.org/zh-CN/-->
<!--https://alova.js.org/zh-CN/tutorial/getting-started/quick-start-->
<!--https://esm.sh/#docs-->
<!--esm.sh允许从http URL导入JavaScript模块无需安装/构建步骤-->
<script type="module">
   import { createAlova } from 'https://esm.sh/alova';
   import adapterFetch  from 'https://esm.sh/alova/fetch';
   //import VueHook from 'https://esm.sh/alova/vue';
   //import VueHook from 'https://esm.sh/alova/react';
   //import VueHook from 'https://esm.sh/alova/svelte';
   //import NuxtHook from 'https://esm.sh/alova/nuxt';
  
	const alovaInstance = createAlova({
	  baseURL: 'https://mp.reneshine.com:443',
	  // 请求超时时间，单位为毫秒，默认为0，表示永不超时
	  timeout: 5000,
	  requestAdapter: adapterFetch(),
	  responded: response => response.json()
	});
	
	const response = await alovaInstance.Get('/api/pc/index', {
	     credentials: 'same-origin',
		 referrerPolicy: 'no-referrer',
		 mode: 'cors',
		 //params: {
		//	apikey: 'AK-WixwcfbvJuvxd6AR7xUPnz3COc6NkmFaw4xf'
		 //},
		 headers: {
			'apikey': 'AK-WixwcfbvJuvxd6AR7xUPnz3COc6NkmFaw4xf',
			'Content-Type': 'application/json;charset=UTF-8',
			//'Content-Type': 'multipart/form-data',
			//'Content-Type': 'application/x-www-form-urlencoded'
		  }
	})
	console.log(response);
</script>
</body>
</html>